export function clientToLocal(msg: string): string {
	return msg;
}

export function formatMsg(...args: any[]): string {
    const s = args[0];
    args.shift();
    return s.replace(/{(\d+)}/g, (match, number) => (typeof args[number] !== 'undefined'
        ? args[number]
        : match));
}

export function clientToLocalParam(...args: any[]): string {
    const msg = args[0];
    args[0] = clientToLocal(msg);
    return formatMsg(args);
}
